package cn.kgc.springboot.mapper;

import cn.kgc.springboot.entity.User;
import cn.kgc.springboot.redis.RedisCache;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;

/**
* @author mengshun
* @description 针对表【user】的数据库操作Mapper
* @createDate 2023-11-15 15:50:54
* @Entity cn.kgc.springboot.entity.User
*/
//  开启 UserMapper 二级缓存  基于内存的缓存  cn.kgc.springboot.mapper.UserMapper"
@CacheNamespace(implementation = RedisCache.class)
public interface UserMapper extends BaseMapper<User> {

    User getById(Integer id);
}




